const addTestnet = async (browser, page) => {
    console.log('领取测试币')
    await page.locator("xpath=//li[text()='Home']").click()
    await page.locator("xpath=//button[text()='CLAIM NOW']").scrollIntoViewIfNeeded();
    await page.waitForTimeout(2000); // 等待2秒
    const frame = page.frameLocator('xpath=//*[@id="root"]//div[3]/div[1]/div[3]/div/div/div//iframe')
    await frame.locator("#recaptcha-anchor").click()
    await page.locator("xpath=//button[text()='CLAIM NOW']").click()
}

module.exports = { addTestnet };